package com.njit.office.model;

import com.njit.office.dataobject.LoginUser;
import com.njit.office.dataobject.Team;
import com.njit.office.dataobject.User;

import java.util.Date;

public class TaskModel {

    private String taskId;

    private String content;

    private Team team;

    private LoginUser loginUser;


    private TaskState taskState;

    private Date deadLine;

    private boolean isUrgent;


    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Team getTeam() {
        return team;
    }

    public void setTeam(Team team) {
        this.team = team;
    }

    public LoginUser getLoginUser() {
        return loginUser;
    }

    public void setLoginUser(LoginUser loginUser) {
        this.loginUser = loginUser;
    }

    public void setTaskState(TaskState taskState) {
        this.taskState = taskState;
    }

    public TaskState getTaskState() {
        return taskState;
    }

    public void setTaskState(String taskState) {

        this.taskState =  TaskState.valueOf(taskState);
    }

    public Date getDeadLine() {
        return deadLine;
    }

    public void setDeadLine(Date deadLine) {
        this.deadLine = deadLine;
    }

    public boolean isUrgent() {
        return isUrgent;
    }

    public void setUrgent(boolean urgent) {
        isUrgent = urgent;
    }
}
